const router = require("express").Router();
const { hasPermission, hasRole } = require("../middleware/hasPermissionMiddleware");

// 用户登录相关
router.use("/user", require("./user"));
// 系统管理
router.use("/system", hasRole(["admin"]), require("./system"));

module.exports = router;
